package com.gxa.insurance.mapper;

import com.gxa.insurance.pojo.Coupon;
import com.gxa.insurance.pojo.Customer;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

/**
 * @ClassName CustomerMapper
 * @Description TODO
 * @Author ds
 * @Date 2022/6/7 13:09
 * @Version 1.0
 */
public interface CustomerMapper {

    void insert(Customer customer);

    List<Customer> selectByPage(Integer offset,Integer limit);

    Integer selectAllCount();

    void update(Customer customer);

    Customer selectById(Integer id);

    Customer selectByPhone(String phone);

    List<Customer> selectLikeName(Map map);

    Integer selectLikeNameCount(Map map);

    List<Customer> selectEmail();

    List<Customer> selectByEmail(String email);

    List<Customer> selectAll();

    Customer selectByEmailAndCoupon(String email);

}
